QT       += core gui qml charts concurrent sql testlib printsupport
QT.testlib.CONFIG -= console

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
DEFINES += QT_PROJECT_T1C

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

TARGET = methypure800
message('TARGET=methypure800')

CONFIG(debug, debug|release){
    DEFINES -= QT_NO_DEBUG
    DEFINES -= QT_NO_DEBUG_OUTPUT
    OBJECTS_DIR += build/debug_obj
}

CONFIG(release, debug|release){
    DEFINES += QT_NO_DEBUG
    DEFINES += QT_NO_DEBUG_OUTPUT
    OBJECTS_DIR += build/release_obj
}

RCC_DIR += build/rcc
MOC_DIR += build/mod
UI_DIR += ui/inc

INCLUDEPATH += \
    $$PWD/../../../ \
    $$PWD/../../../utils/serialport/

include ($$PWD/../../../utils/keyboard/keyboard.pri)
include ($$PWD/../../../utils/configure/configure.pri)
include ($$PWD/../../../utils/firmware/firmware.pri)
include ($$PWD/../../../utils/log/log.pri)
include ($$PWD/../../../utils/can/can.pri)
#include ($$PWD/../../../utils/serialport/serialport.pri)
include ($$PWD/../../../utils/algorithm/algorithm.pri)
include ($$PWD/../../../utils/database/database.pri)
include ($$PWD/../../../utils/upgrade/upgrade.pri)

SOURCES += \
    application_ex.cpp \
    main.cpp \
    ui/factory/device_notify/form_device_notify.cpp \
    ui/factory/extract_debug/form_extract_debug.cpp \
    ui/factory/extract_debug/form_extract_debug_new.cpp \
    ui/factory/extract_debug/form_extract_debug_running.cpp \
    ui/factory/extract_debug/form_extract_debug_running_ex.cpp \
    ui/factory/extract_debug/mvc/extract_data_model.cpp \
    ui/factory/extract_debug/mvc/extract_item_delegate.cpp \
    ui/factory/extract_debug/mvc/extract_table_view.cpp \
    ui/factory/factory_params/form_factory_params.cpp \
    ui/factory/form_directory_dlg.cpp \
    ui/factory/form_factory.cpp \
    ui/factory/form_name_dlg.cpp \
    ui/factory/heating_debug/form_heating_debug.cpp \
    ui/factory/heating_debug/form_heating_debug_ex.cpp \
    ui/factory/motor_debug/form_motor_debug.cpp \
    ui/factory/motor_debug/form_motor_debug_ex.cpp \
    ui/factory/process_debug/form_process_debug.cpp \
    ui/factory/process_debug/form_process_debug_new.cpp \
    ui/factory/process_debug/form_process_debug_running.cpp \
    ui/factory/process_debug/form_process_debug_running_ex.cpp \
    ui/factory/process_debug/mvc/process_data_model.cpp \
    ui/factory/process_debug/mvc/process_item_delegate.cpp \
    ui/factory/process_debug/mvc/process_table_view.cpp \
    ui/factory/self-checking/form_self_checking.cpp \
    ui/factory/self-checking/mvc/maintain_buttondelegate.cpp \
    ui/factory/self-checking/mvc/maintain_labeldelegate.cpp \
    ui/factory/self-checking/mvc/maintain_progressbardelegate.cpp \
    ui/factory/self-checking/mvc/maintain_tablemodel.cpp \
    ui/factory/self-checking/mvc/maintain_tableview.cpp \
    ui/factory/uvc/form_light_lamp.cpp \
    ui/factory/uvc/form_uv_disinfection.cpp \
    ui/home/form_login.cpp \
    ui/home/form_self_check.cpp \
    ui/home/form_status_bar.cpp \
    ui/home/form_tool_bar.cpp \
    ui/home/homepage/form_chart_info.cpp \
    ui/home/homepage/form_home.cpp \
    ui/home/homepage/form_testing.cpp \
    ui/home/homepage/form_view_procedure.cpp \
    ui/setting/form_mode_verify_dlg.cpp \
    ui/setting/form_setting.cpp \
    ui/setting/form_setting_data_tools.cpp \
    ui/setting/form_setting_language.cpp \
    ui/setting/form_setting_log.cpp \
    ui/setting/form_setting_mode.cpp \
    ui/setting/form_setting_network.cpp \
    ui/setting/form_setting_rtc.cpp \
    ui/setting/form_setting_upgrade.cpp \
    ui/setting/form_setting_version.cpp \
    ui/share/form_inquiry_dlg.cpp \
    ui/share/form_legend_dlg.cpp \
    ui/share/form_plot_dlg.cpp \
    ui/share/form_progressbar.cpp \
    ui/share/form_prompt_dlg.cpp \
    ui/share/form_shield_dlg.cpp \
    ui/share/mutil_header.cpp \
    ui/share/my_switch_button.cpp \
    ui/share/my_tabbar_style.cpp \
    ui/share/qcustomplot.cpp \
    ui/share/qlineeditpwd.cpp \
    ui/share/qlineloading.cpp \
    utility_api.cpp \
    widget_manager.cpp

HEADERS += \
    application_ex.h \
    ui/defines/global.h \
    ui/defines/global_db.h \
    ui/defines/global_err.h \
    ui/defines/global_ini.h \
    ui/defines/global_ui.h \
    ui/defines/global_ver.h \
    ui/factory/device_notify/form_device_notify.h \
    ui/factory/extract_debug/form_extract_debug.h \
    ui/factory/extract_debug/form_extract_debug_new.h \
    ui/factory/extract_debug/form_extract_debug_running.h \
    ui/factory/extract_debug/form_extract_debug_running_ex.h \
    ui/factory/extract_debug/mvc/extract_data_define.h \
    ui/factory/extract_debug/mvc/extract_data_model.h \
    ui/factory/extract_debug/mvc/extract_item_delegate.h \
    ui/factory/extract_debug/mvc/extract_table_view.h \
    ui/factory/factory_params/form_factory_params.h \
    ui/factory/form_directory_dlg.h \
    ui/factory/form_factory.h \
    ui/factory/form_name_dlg.h \
    ui/factory/heating_debug/form_heating_debug.h \
    ui/factory/heating_debug/form_heating_debug_ex.h \
    ui/factory/motor_debug/form_motor_debug.h \
    ui/factory/motor_debug/form_motor_debug_ex.h \
    ui/factory/process_debug/form_process_debug.h \
    ui/factory/process_debug/form_process_debug_new.h \
    ui/factory/process_debug/form_process_debug_running.h \
    ui/factory/process_debug/form_process_debug_running_ex.h \
    ui/factory/process_debug/mvc/process_data_define.h \
    ui/factory/process_debug/mvc/process_data_model.h \
    ui/factory/process_debug/mvc/process_item_delegate.h \
    ui/factory/process_debug/mvc/process_table_view.h \
    ui/factory/self-checking/form_self_checking.h \
    ui/factory/self-checking/mvc/maintain_buttondelegate.h \
    ui/factory/self-checking/mvc/maintain_labeldelegate.h \
    ui/factory/self-checking/mvc/maintain_progressbardelegate.h \
    ui/factory/self-checking/mvc/maintain_tablemodel.h \
    ui/factory/self-checking/mvc/maintain_tableview.h \
    ui/factory/uvc/form_light_lamp.h \
    ui/factory/uvc/form_uv_disinfection.h \
    ui/home/form_login.h \
    ui/home/form_self_check.h \
    ui/home/form_status_bar.h \
    ui/home/form_tool_bar.h \
    ui/home/homepage/form_chart_info.h \
    ui/home/homepage/form_home.h \
    ui/home/homepage/form_testing.h \
    ui/home/homepage/form_view_procedure.h \
    ui/setting/form_mode_verify_dlg.h \
    ui/setting/form_setting.h \
    ui/setting/form_setting_data_tools.h \
    ui/setting/form_setting_language.h \
    ui/setting/form_setting_log.h \
    ui/setting/form_setting_mode.h \
    ui/setting/form_setting_network.h \
    ui/setting/form_setting_rtc.h \
    ui/setting/form_setting_upgrade.h \
    ui/setting/form_setting_version.h \
    ui/share/form_inquiry_dlg.h \
    ui/share/form_legend_dlg.h \
    ui/share/form_plot_dlg.h \
    ui/share/form_progressbar.h \
    ui/share/form_prompt_dlg.h \
    ui/share/form_shield_dlg.h \
    ui/share/mutil_header.h \
    ui/share/my_switch_button.h \
    ui/share/my_tabbar_style.h \
    ui/share/qcustomplot.h \
    ui/share/qlineeditpwd.h \
    ui/share/qlineloading.h \
    utility_api.h \
    widget_manager.h

FORMS += \
    ui/factory/device_notify/form_device_notify.ui \
    ui/factory/extract_debug/form_extract_debug.ui \
    ui/factory/extract_debug/form_extract_debug_new.ui \
    ui/factory/extract_debug/form_extract_debug_running.ui \
    ui/factory/extract_debug/form_extract_debug_running_ex.ui \
    ui/factory/factory_params/form_factory_params.ui \
    ui/factory/form_directory_dlg.ui \
    ui/factory/form_factory.ui \
    ui/factory/form_name_dlg.ui \
    ui/factory/heating_debug/form_heating_debug.ui \
    ui/factory/heating_debug/form_heating_debug_ex.ui \
    ui/factory/motor_debug/form_motor_debug.ui \
    ui/factory/motor_debug/form_motor_debug_ex.ui \
    ui/factory/process_debug/form_process_debug.ui \
    ui/factory/process_debug/form_process_debug_new.ui \
    ui/factory/process_debug/form_process_debug_running.ui \
    ui/factory/process_debug/form_process_debug_running_ex.ui \
    ui/factory/self-checking/form_self_checking.ui \
    ui/factory/uvc/form_light_lamp.ui \
    ui/factory/uvc/form_uv_disinfection.ui \
    ui/home/form_login.ui \
    ui/home/form_self_check.ui \
    ui/home/form_status_bar.ui \
    ui/home/form_tool_bar.ui \
    ui/home/homepage/form_chart_info.ui \
    ui/home/homepage/form_home.ui \
    ui/home/homepage/form_testing.ui \
    ui/home/homepage/form_view_procedure.ui \
    ui/setting/form_mode_verify_dlg.ui \
    ui/setting/form_setting.ui \
    ui/setting/form_setting_data_tools.ui \
    ui/setting/form_setting_language.ui \
    ui/setting/form_setting_log.ui \
    ui/setting/form_setting_mode.ui \
    ui/setting/form_setting_network.ui \
    ui/setting/form_setting_rtc.ui \
    ui/setting/form_setting_upgrade.ui \
    ui/setting/form_setting_version.ui \
    ui/share/form_inquiry_dlg.ui \
    ui/share/form_legend_dlg.ui \
    ui/share/form_plot_dlg.ui \
    ui/share/form_progressbar.ui \
    ui/share/form_prompt_dlg.ui \
    ui/share/form_shield_dlg.ui \
    widget_manager.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    ui/res/img/img.qrc \
    ui/res/qss/qss.qrc \
    ui/res/qml/qml.qrc

VERSION = 1.0.0.0
#RC_ICONS = Images/App.ico
QMAKE_TARGET_COMPANY = "ripnano biotechnology(GuangZhou) Co., Ltd"
QMAKE_TARGET_PRODUCT = "gen-untitled"
QMAKE_TARGET_DESCRIPTION = "Application Program"
QMAKE_TARGET_COPYRIGHT = "Copyright 2023 ripnano Ltd. All rights reserved."
RC_LANG = 0x0004

RC_FILE = app.rc
